package com.iwop.moto.service.impl;

import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.MobomApplyService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liuwb on 2016-10-19 14:36:22.
 */
@Service
public class MobomApplyServiceImpl extends BaseService implements MobomApplyService {

    public static String insert="BMobomApplyMapper.insert";
    public static String findListByParam="BMobomApplyMapper.findListByParam";
    public static String findTelIsApply="BMobomApplyMapper.findTelIsApply";

    /**
     * @功能: 活动报名 - 新增
     * @日期: liuwb by 2016-10-19 14:36:41 create
     * @param SRModel
     */
    public void insert(SuperRecordModel SRModel){
        getSqlSession().insert(insert,SRModel);
    }

    /**
     * @功能: 活动报名 - 查询
     * @日期: liuwb by 2016-10-19 15:11:40 create
     * @param SRModel
     */
    public List<SuperRecordModel> findListByParam(SuperRecordModel SRModel){
        return getSqlSession().selectList(findListByParam,SRModel);
    }

    /**
     * @功能 活动报名 - 是否已经注册
     * @日期 liuwb by 2016-10-20 09:24:18 create
     * @param SRModel
     */
    public Long findTelIsApply(SuperRecordModel SRModel){
        return getSqlSession().selectOne(findTelIsApply,SRModel);
    }

}
